<?php


namespace app\common\controller;


use support\traits\ApiResponse;
use think\Model;

class BaseController
{
    use ApiResponse;

    protected $noNeedLogin = []; //是否不需要登录
    protected $noNeedRight = []; //是否不需要鉴权

    protected $model = null;

    /**
     * @return Model
     */
    public function getModel()
    {
        return new $this->model();
    }

}